package org.springblade.modules.system.pojo.entity.wechat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 微信渠道配置
 * @author: luoyt
 * @create: 2024-08-23 20:42
 **/
@Data
@TableName("channel_wx_configuration")
@Schema(description = "微信渠道配置")
public class ChannelWxConfiguration implements Serializable {

    @Schema(description = "通道标识id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "租户ID")
    private String tenantId;

    @Schema(description = "归属人账号")
    private String deptId;

    @Schema(description = "通道负责人姓名")
    private String userName;

    @Schema(description = "通道负责人手机号码")
    private String userPhone;

    @Schema(description = "通道类型 1:支付宝 2 微信")
    private Integer channelType;

    @Schema(description = "公众号对应id")
    private String appid;

    @Schema(description = "商户号")
    private String mchid;

    @Schema(description = "秘钥内容")
    private String secret;

    @Schema(description = "设置微信公众号的token")
    private String token;

    @Schema(description = "设置微信公众号的EncodingAESKey")
    private String aesKey;

    @Schema(description = "服务ID")
    private String serviceId;

    @Schema(description = "商户key")
    private String merchantsKey;

    @Schema(description = "证书序列号")
    private String serialNo;

    @Schema(description = "证书客户端路径")
    private String clientKeypath;

    @Schema(description = "证书服务端路径")
    private String serviceKeypath;

    @Schema(description = "商户鉴权token 2小时定时刷新")
    private String accessToken;

    @Schema(description = "商户鉴权ticket 2小时定时刷新")
    private String jsapiTicket;

    @Schema(description = "token刷新时间")
    private Date refreshTime;

    @Schema(description = "微信回调网关")
    private String notifyUrl;

    @Schema(description = "服务信息 产品简称+产品名字")
    private String serviceInformation;

    @Schema(description = "计费规则描述")
    private String description;

    @Schema(description = "通道开关,0:关闭,1开启")
    private Integer channelStatus;



    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;
}